﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (PreviousPage != null)
            {
                TextBox xm = (TextBox)PreviousPage.FindControl("TextBox1");
                TextBox nl = (TextBox)PreviousPage.FindControl("TextBox2");
                TextBox ah= (TextBox)PreviousPage.FindControl("TextBox3");
                if (xm != null)
                {
                    Label1.Text = "姓名："+xm.Text;
                }
                if (nl !=null)
                {
                    Label2.Text = "年龄："+xm.Text;
                }
                if (ah != null)
                {
                    Label3.Text = "爱好："+ah.Text;
                }

            }
        }
    }
}